<?php 
session_start();
require_once("../includes/user.php"); 
$user=new User;
$p_row=$user->getUserProfile($_SESSION['id']);
?>
<table width="662" height="122" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="662" height="10"><div class="Innerheading"> Welcome <?php echo $p_row['userid']; ?> !!!</div></td>
  </tr>
  <tr>
    <td><div class="InnerDarkbox">
      <table width="529" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="200"><table width="161" height="121" border="8" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#000000">
            <tr>
              <td align="right" valign="bottom" background="user_images/2.jpg"><span class="style1">change picture</span></td>
            </tr>
          </table></td>
          <td width="329"><table width="424" height="110" border="0" align="center" cellpadding="0" cellspacing="0" class="profile">
            <tr>
              <td width="63" align="center" valign="middle" class="profile">&nbsp;</td>
              <td width="79" align="center" valign="middle" class="profile">Name :</td>
              <td width="282" height="10" align="left" valign="middle" class="profile"><?php echo $p_row['name'] ?></td>
            </tr>
            <tr>
              <td height="10" colspan="3" align="center" valign="middle" class="profile">&nbsp;</td>
              </tr>
            <tr>
              <td align="center" valign="middle" class="profile">&nbsp;</td>
              <td align="center" valign="middle" class="profile">Reg no :</td>
              <td height="10" align="left" valign="middle" class="profile"><?php echo $p_row['regno'] ?></td>
            </tr>
            <tr>
              <td height="20" colspan="3" align="center" valign="middle" class="profile">&nbsp;</td>
              </tr>
            <tr>
              <td align="center" valign="middle" class="profile">&nbsp;</td>
              <td height="20" align="center" valign="middle" class="profile">Year :</td>
              <td height="20" align="left" valign="middle" class="profile">
			  <?php echo $user->getYear($p_row['year']);
			    ?> CSE</td>
            </tr>
            <tr>
              <td height="10" colspan="3" align="center" valign="middle" class="profile">&nbsp;</td>
              </tr>
            <tr>
              <td align="center" valign="middle" class="profile">&nbsp;</td>
              <td align="center" valign="middle" class="profile">House :</td>
              <td height="10" align="left" valign="middle" class="profile"><?php echo $user->getHouse($p_row['house']); ?></td>
            </tr>
            <tr>
              <td height="10" colspan="3" align="center" valign="middle" class="profile">&nbsp;</td>
              </tr>
            <tr>
              <td align="center" valign="middle" class="profile">&nbsp;</td>
              <td align="center" valign="middle" class="profile">Commitee :</td>
              <td height="10" align="left" valign="middle" class="profile"><?php echo $user->getCommitee($p_row['commitee']); ?></td>
            </tr>
          </table></td>
        </tr>
      </table>
      </div></td>
  </tr>
</table>
